﻿using System.Data.Entity.ModelConfiguration;
using QDT.Core.Deals;

namespace QDT.Core.MSData.Mapping
{
    public class CreditExtensionMapping : EntityTypeConfiguration<CreditExtension>
    {
        public CreditExtensionMapping()
        {
            HasKey(x => x.ID);

            HasRequired(x => x.Credit).WithMany().HasForeignKey(x => x.CreditId);

            ToTable(DB.TPref("credit_extension"));
        }
    }
}
